import request from "@/utils/request";

// 查询订单列表列表
export function listOrders(query) {
  return request({
    url: "/orderlist/list",
    method: "get",
    params: query,
  });
}

// 查询订单列表详细
export function getOrders(id) {
  return request({
    url: "/orderlist/" + id,
    method: "get",
  });
}

// 新增订单列表
export function addOrders(data) {
  return request({
    url: "/orderlist",
    method: "post",
    data: data,
  });
}

// 修改订单列表
export function updateOrders(data) {
  return request({
    url: "/orderlist/orders",
    method: "put",
    data: data,
  });
}

// 删除订单列表
export function delOrders(id) {
  return request({
    url: "/orderlist/orders/" + id,
    method: "delete",
  });
}
